﻿@import "../_theme";

#page-wraper {
    margin-bottom: 1rem;
}

#page-head {
    width: 100%;
}

#page-title {
    color: $ClrTheme;
    margin: 10px 0;

    & > i {
        font-size: 5rem;
        float: left;
        margin-right: 10px;
    }

    & > h6 {
        color: lighten($ClrThemeTxt,40);
    }
}

.goPrint{
    position:absolute;
    top:1rem;
    right:0;
}

.field-title {
    font-size: 80%;
    color: lighten($ClrThemeTxt,30);
}

.auto-full-height {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
}

.v-center-wraper {
    display: table;
    height: 100%;
    width: 100%
}

#ord-head {
    background-color: $ClrMsg;
    border: 1px solid $ClrMsgBorder;
    padding: 5px;
}

.dlv-steps{
    text-align:center;
    &>div{
        padding:1rem 2rem;
        &>i{
            font-size:6rem;
            color:$ClrTheme;

            &.undo{
                color:$ClrDisable;
            }

            &.fail{
                color:$ClrImportant;
            }
            
        }
    }
}
.ds-dlv-step {
    display: inline-block;
    background: url(/UI/imgs/icon-tags.png) no-repeat;
    height: 96px;
    width: 96px;

    &.s1 {
        background-position: -124px -328px;
    }

    &.s2 {
        background-position: -230px -328px;

        &.undo {
            background-position: -338px -328px;
        }
    }

    &.s3 {
        background-position: -550px -328px;

        &.undo {
            background-position: -656px -328px;
        }

        &.fail {
            background-position: -444px -328px;
        }
    }
}

.Tabs {
    font-weight: bold;
    color: lighten($ClrThemeTxt,20);

    & > span {
        padding: 1rem 2rem;
        display: inline-block;

        &.active {
            //background-color: $ClrThemeHotTxt;
            color: $ClrTheme;
            //box-shadow: 0 0 5px 0 $ClrTheme;
        }
    }

    & > .tab-hover {
        border: none;
        height: 100%;
        background-color: white;
        top: 0;
        z-index: -1;
        box-shadow: 0px 5px 0px 0px white, 0 0 3px 0 $ClrTheme;
    }
}

.ord-view {
    min-height: 30rem;
    height: auto;

    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        box-shadow: 0 0 3px 0 $ClrTheme;
        z-index: -2;
        background-color: white;
    }

    & .info-tip{
        width:auto;
        padding:0 1rem;
        margin-left:1rem;
    }
}

.dlv-item {
    padding: 10px 5px;

    &:hover {
        background-color: $ClrHover;
    }
}

.dlv-detail {
    margin:2.5rem 0 1rem 0;
}
.dlv-remark {
    width: 100%;
    min-height:6rem;
    padding: 0.5rem;
    margin:0.5rem 0 1rem 0;
    background-color:$ClrDisableBk;
    border:1px solid;
}


.product {
    width: 10%;
}

.item-info {
    width: 25%;
}

.item-info-content {
    width: 25%;
    text-align: left;
    padding-left: 1rem;
}

.field-item {
    padding-left: 3rem;

    & > .field-title {
        position: absolute;
        left: 0;
    }
}

.count {
    width: 12%;
}

.remark {
    width: 15%;
}

.ord-i-memo {
    width:15%;

    &>span{
        display:block;
        max-height:4rem;
        width:100%;
        overflow:auto;
    }
}
.dlv-i-count{
    width:12%
}
.rcv-count {
    width: 12%;

    & > h5 {
        white-space: nowrap;
        color:$ClrTheme;
        &.part{
            color:$ClrImportant;
        }
    }

    & > button {
        & > i {
            pointer-events: none;
        }
    }
}
.rcv-remark {
    & > span {
        display: block;
        max-height: 4rem;
        width: 100%;
        overflow: auto;
    }
}

#rcv-editor{
    position:absolute;
    width:60rem;
    height:45rem;
    top:0;
    left:0;
    background-color:white;
    box-shadow:0 0 5px 0 $ClrTheme;
    padding:1rem;
    display:none;
}

.item-counting-view {
    & > div {
        & > input {
            height: 4rem;
            line-height: 4rem;
            width: 100%;
            margin-bottom:10px;
        }

        &  textarea {
            height:12rem;
            line-height: 2.4rem;
            resize:none;
            width: 100%;
            overflow:auto;
        }
    }
}

#rcv-remarks {
    position: absolute;
    width: 100%;
    bottom: 0;
    display: block;
    padding: 5px;
    cursor:pointer;
    &>span{
        border:1px solid $ClrControllerBk;
        background-color:$ClrDisableBk;
        padding:2px 4px;
        margin:1px;
        float:left;
        &.slcted{
            border:1px solid $ClrTheme;
            color:$ClrTheme;
        }
    }
}

#qc-editor {
    background-color: white;
    padding: 0 1rem;
}
#qc-remark {
    width: 100%;
    height: 8rem;
}
#qc-tags {
    position: absolute;
    width: 100%;
    bottom: 0;
    display: block;
    padding: 5px;
    cursor: pointer;

    & > span {
        border: 1px solid $ClrControllerBk;
        background-color: $ClrDisableBk;
        padding: 2px 4px;
        margin: 1px;
        float: left;

        &.slcted {
            border: 1px solid $ClrTheme;
            color: $ClrTheme;
        }
    }
}
.qc-img {
    position: relative;
    width: 6rem;
    height: 6rem;
    box-shadow: 0 0 2px 0 gray;
    background-size: cover;
    float: left;
    margin-right: 10px;

    &.uploading {
        &::before {
            position: absolute;
            content: ' ';
            top: 0;
            left: 0;
            width: 6rem;
            height: 6rem;
            background-color: black;
            opacity: .7;
            background-image: url('/UI/imgs/loading-9.gif');
            background-size: cover;
            background-position: center;
        }
    }

    & > .btn-remove {
        font-size: 2rem;
        position: absolute;
        right: -10px;
        top: -5px;
        color: $ClrImportant;
    }
}
#qc-img-wraper{
    &::after{
        content:'';
        display:block;
        clear:both;
    }
}
#qc-img-slctor {
    border: 1px dashed black;
    text-align: center;
    padding: .5rem 0;

    & > i {
        font-size: 4rem;
        display:block;
    }
}

#qc-editor-actions{
    text-align:right;
    margin:10px 0;
}

#rcv-processing{
    text-align:center;
}
.process {
    margin-bottom: 1rem;
    text-align:left;
    padding:0 2rem;
    &.ok {
        & > h4 {
            color: $ClrOk;
        }
    }

    &.fail {
        & > h4 {
            color: $ClrErr;
        }
    }
}